<?php

class Application_Form_Auth extends Zend_Form
{

    public function init()
    {
        /* Form Elements & Other Definitions Here ... */
        $this->setName('auth');

        $id = new Zend_Form_Element_Hidden('id');
        $id->addFilter('Int');

        $username = new Zend_Form_Element_Text('username');
        $username->setLabel('Username')
        		->setRequired(true)
        		->addFilter('StripTags')
        		->addFilter('StringTrim')
        		->addValidator('NotEmpty');

        $password = new Zend_Form_Element_Password('password');
        $password->setLabel('Password')
        		->setRequired(true)
        		->addFilter('StripTags')
        		->addFilter('StringTrim')
        		->addValidator('NotEmpty');

        $submit = new Zend_Form_Element_Submit('submit');
        $submit->setAttrib('id', 'submitbutton');
        
        $this->addElements(array($username, $password, $submit));
    }


}

